import statsTest
import numpy as np

# 2
list=[9.8,10.4,10.6,9.6,9.7,9.9,10.9,11.1,9.6,10.2,10.3,9.6,9.9,11.2,10.6,9.8,10.5,10.1,10.5,9.7]
print(statsTest.z_test(list,10))
print(statsTest.t_test(list,10))
list=np.array([9.8,10.4,10.6,9.6,9.7,9.9,10.9,11.1,9.6,10.2,10.3,9.6,9.9,11.2,10.6,9.8,10.5,10.1,10.5,9.7])
print(list.mean())

# 3
l1=[0.225,0.262,0.217,0.240,0.230,0.229,0.235,0.217]
l2=[0.209,0.205,0.196,0.210,0.202,0.207,0.224,0.223,0.220,0.201]
print(statsTest.t_test2(l1,l2))
print(statsTest.ranksum_test(l1,l2))
